#ifndef LISTUTIL_H_
#define LISTUTIL_H_

#include "../../common/fuentes/Persistent.h"
#include "../../indexado/fuentes/NumberUtil.h"
#include "OQLSimpleCondition.h"
#include "OQLRangeCondition.h"
#include "ListPersistent.h"
#include <vector>



#define OPERADOR_NULO 0
#define OPERADOR_MAYOR 1
#define OPERADOR_MAYOR_IGUAL 2
#define OPERADOR_IGUAL 3
#define OPERADOR_MENOR 4
#define OPERADOR_MENOR_IGUAL 5
#define OPERADOR_DISTINTO 6

class ListUtil
{
public:
	ListUtil();
	virtual ~ListUtil();
	static void applyFilter(ListPersistent &ls, OQLSimpleCondition &cond);
	static void applyRangeFilter(ListPersistent &ls, OQLRangeCondition &cond);
	static int getConditionKey(const char* operador);
};

#endif /*LISTUTIL_H_*/
